package com.ruanmou.spring.demo.service;

import com.ruanmou.spring.demo.dao.UserDAO;

public class UserServiceImpl implements UserService {

    private UserDAO userDao;

    private UserServiceImpl() {
    }

    private UserServiceImpl(UserDAO userDao) {
        this.userDao = userDao;
    }

    public void setUserDao(UserDAO userDao) {
        this.userDao = userDao;
    }

    @Override
    public void register() {
        userDao.add();
    }
}
